package com.zllkj.mm.api.remote;


import com.zllkj.mm.api.network.BaseResponse;
import com.zllkj.mm.model.entity.CollectionsListBean;
import com.zllkj.mm.model.entity.GoodsDetailVo;
import com.zllkj.mm.model.entity.NearByGoodsListBean;

import java.util.Map;

import retrofit2.http.Body;
import retrofit2.http.POST;
import rx.Observable;

public interface GoodsApi {
    
    @POST("goods/nearbyList")
    Observable<BaseResponse<NearByGoodsListBean>> getNearByGoodsList(@Body Map<String, Object> map);

    @POST("goods/focusList")
    Observable<BaseResponse<NearByGoodsListBean>> getNearByFocusGoodsList(@Body Map<String, Object> map);

    @POST("goods/loginInfo")
    Observable<BaseResponse<GoodsDetailVo>> getGoodsDetail(@Body Map<String, Object> map);

    @POST("goodsCollection/list")
    Observable<BaseResponse<CollectionsListBean>> getGoodsCollectionsList(@Body Map<String, Object> map);

    @POST("goodsCollection/add")
    Observable<BaseResponse<String>> addGoodsCollection(@Body Map<String, Object> map);

    @POST("goodsCollection/cancel")
    Observable<BaseResponse<String>> cancelGoodsCollection(@Body Map<String, Object> map);

    @POST("goods/onShelfList")
    Observable<BaseResponse<NearByGoodsListBean>> getGoodsOnShelfList(@Body Map<String, Object> map);

}
